package com.ruoyi.objectPic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.objectPic.mapper.AtbObjectPicMapper;
import com.ruoyi.objectPic.domain.AtbObjectPic;
import com.ruoyi.objectPic.service.IAtbObjectPicService;

/**
 * 对象宣传图片Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-17
 */
@Service
public class AtbObjectPicServiceImpl implements IAtbObjectPicService 
{
    @Autowired
    private AtbObjectPicMapper atbObjectPicMapper;

    /**
     * 查询对象宣传图片
     * 
     * @param id 对象宣传图片主键
     * @return 对象宣传图片
     */
    @Override
    public AtbObjectPic selectAtbObjectPicById(Long id)
    {
        return atbObjectPicMapper.selectAtbObjectPicById(id);
    }

    /**
     * 查询对象宣传图片列表
     * 
     * @param atbObjectPic 对象宣传图片
     * @return 对象宣传图片
     */
    @Override
    public List<AtbObjectPic> selectAtbObjectPicList(AtbObjectPic atbObjectPic)
    {
        return atbObjectPicMapper.selectAtbObjectPicList(atbObjectPic);
    }

    /**
     * 新增对象宣传图片
     * 
     * @param atbObjectPic 对象宣传图片
     * @return 结果
     */
    @Override
    public int insertAtbObjectPic(AtbObjectPic atbObjectPic)
    {
        return atbObjectPicMapper.insertAtbObjectPic(atbObjectPic);
    }

    /**
     * 修改对象宣传图片
     * 
     * @param atbObjectPic 对象宣传图片
     * @return 结果
     */
    @Override
    public int updateAtbObjectPic(AtbObjectPic atbObjectPic)
    {
        return atbObjectPicMapper.updateAtbObjectPic(atbObjectPic);
    }

    /**
     * 批量删除对象宣传图片
     * 
     * @param ids 需要删除的对象宣传图片主键
     * @return 结果
     */
    @Override
    public int deleteAtbObjectPicByIds(Long[] ids)
    {
        return atbObjectPicMapper.deleteAtbObjectPicByIds(ids);
    }

    /**
     * 删除对象宣传图片信息
     * 
     * @param id 对象宣传图片主键
     * @return 结果
     */
    @Override
    public int deleteAtbObjectPicById(Long id)
    {
        return atbObjectPicMapper.deleteAtbObjectPicById(id);
    }
}
